import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/eims/takeInventory/getSalesOfOutboundPage',
    method: 'get',
    params: query
  })
}
//获取销售出库详情
export function getTakeInventoryInfo(id) {
  return request({
    url: "/eims/takeInventory/getInfo/" + id,
    method: "get"
  });
}
//手动新增销售出库
export function addRecipients(obj) {
  return request({
    url: '/eims/takeInventory/save',
    method: 'post',
    data: obj
  })
}
//审核销售出库
export function auditRecipientsOfOutbound(id) {
  return request({
    url: '/eims/takeInventory/audit/' + id,
    method: 'get',
    params: id
  })
}
//删除
export function delObj(id) {
  return request({
    url: '/eims/takeInventory/' + id,
    method: 'delete'
  })
}
export function getObj(id) {
  return request({
    url: '/admin/eimstakeinventory/' + id,
    method: 'get'
  })
}
//修改销售出库信息
export function editOutboundInfo(obj) {
  return request({
    url: '/eims/takeInventory/editOutboundInfo',
    method: 'put',
    data: obj
  })
}
